<?php

use Illuminate\Support\Facades\Route;
use Illuminate\Routing\Router;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::group(['namespace'=>'App\\Api\\Controllers\\v1','middleware' => ['api'],'as'=>'v1.','prefix'=>'v1'],function (Router $router){
    $router->post('auth/login', 'OauthController@login')->name('auth.login');
    $router->group(['middleware' => ['auth:sanctum']],function (Router $router){
//    $router->group(['prefix'=>'user','as'=>'user.'],function (Router $router){
//        $router->get('login', 'UserController@login')->name('login');
//    });
    });
});






